

# 基本绘制，Cai使用cairo绘制UI（本例中什么都没画），After增加描边后处理

from sketchz import *

# ~ window = WindowCai((1000, 800))
window = WindowAfter((1000, 800))

box = Obj()

box1 = make_block(U3(1, 1, 1))

for i in range(10):
    for j in range(10):
        box1.t.pos = U3(i * 5, j * 5, 0)
        box1.as_unit() >> box


box.color = V3(1, 1, 1)
box.u(window)
box >> window

camera = window.camera
camera.t.pos = U3(0, -5, 1)


walker = Walker3(camera)
walker >> window

window.mainloop()
